package com.cyh.factory;

import com.cyh.dao.UserDao;
import com.cyh.dao.impl.UserDaoImpl;

public class DynamicFactory {
    //bean的第三种实例化方法
    public UserDao getUserDao() {
        return new UserDaoImpl();
    }
}
